#include <iostream>
#include "Time.h"
#include <conio.h>
using namespace std;

int main() {
	Time t1(23, 59, 59);

	t1.print();
	t1.setHour(12);
	t1.setMinute(30);
	t1.setSecond(15);
	t1.print();
	cout << "Hour is " << t1.getHour() << endl;
	cout << "Minute is " << t1.getMinute() << endl;
	cout << "Second is " << t1.getSecond() << endl;

	Time t2;
	t2.print();
	t2.setTime(1, 2, 3);
	t2.print();
	
	Time t3(12);
	t3.print();

	Time t4(23, 59, 58);
	t4.print();
	t4.nextSecond();
	t4.print();

	Time t5(25, 61, 99);
	t5.print();
	_getch();
	return (0);
}